// 数据配置
const datas = {
	preview_color: {
		title: '背景颜色',
		type: 'color',
		value: "#ffffff",
	},
	padding_top: { title: '上边距', type: 'number', value: 0, col: 4, },
	padding_bottom: { title: '下边距', type: 'number', value: 0, col: 4, },
	padding_left: { title: '左边距', type: 'number', value: 0, col: 4, },
	padding_right: { title: '右边距', type: 'number', value: 0, col: 4, },
	tab_bg_color: {
		title: "选项卡背景颜色",
		type: "color",
		value: "#ffffff"
	},
	tab_color: {
		title: "选项卡默认颜色",
		type: "color",
		value: "#333333"
	},
	tab_active_color: {
		title: "选项卡选中颜色",
		type: "color",
		value: "#FF2A00"
	},
	sort_style: {
		title: '商品排列样式',
		type: 'radio',
		value: '1',
		options: [
			{label: '横排', value: '1'},
			{label: '双排', value: '2'},
		]
	},
	get_number: {
		title: "商品显示数量",
		tips: "聚合APP中限制最少2个最多20个",
		type: 'number',
		value: 2,
		min: 2,
		max: 20
	},
	list: {
		title: '添加商品分组',
		type: "list",
		tips: "使用默认商品数据占位，需要查看效果可保存后在移动端预览。选择品牌券专题后商品排列样式只能显示横排。",
		notShow: true,
		showCps: true,
		choose_title: {
			choose_good_style: '1',
			choose_style: 'tb',
			choose_option: [
				{label: "淘宝", value: "tb"},
				{label: "京东", value: "jd"},
				{label: "拼多多", value: "pdd"},
			]
		},
		value: []
	},
	choose_good_style: {
		title: '选择方式',
		type: 'radio',
		value: '1',
		options: []
	},
	choose_style: {
		title: '选择方式',
		type: 'radio',
		value: 'tb',
		options: []
	},
	brand_list: {
		title: "添加品牌券专题",
		type: "ustyle",
		value: [],
		is_cps: true,
		showBy: 'choose_good_style',
		showKey: '4',
		show: 'list',
		min: 1,
		max: 100,
		choose: 'cps_brand',
		options: []
	},
	get_style: {
		title: "获取方式",
		type: "radio",
		value: "3",
		options: []
	},
};

// 样式配置
const styles = {};

import template1 from './template1';

export const config = {
	datas,
	styles,
	layout: [
		template1
	]
};
